Skip to content

release: v0.3.1 — LeftmostLongest early termination - #11

Merged
kolkov merged 1 commit into
mainfrom
release/v0.3.1
Sep 6, 2026
Merged

kolkov merged 1 commit into
mainfrom
release/v0.3.1

Conversation

@kolkov

@kolkov kolkov commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • perf: Find/FindAt with LeftmostLongest — early return at maximum pattern length, eliminates O(n·m) in Count on dense workloads (8.1 ms → 30 µs)
  • test: 12 new subtests covering early termination semantics for Find, FindAt, and Count
  • docs: CONTRIBUTING.md updated from Git-Flow to GitHub Flow, fixed stale paths and project structure

Community contribution by @MikeeI (PR #10).

Test plan

  • go test ./... — all pass
  • go vet ./... — clean
  • golangci-lint run — 0 issues
  • gofmt -l . — clean
  • BenchmarkCountLeftmostLongest — 0 allocs, ~50 µs/op

Performance:
- Find with LeftmostLongest: early return at maximum pattern length,
  eliminates O(n*m) in Count on dense workloads (8.1ms -> 30us)
- FindAt with LeftmostLongest: same early return for consistency

Tests:
- TestLeftmostLongestMaxLenEarlyReturn (5 subtests)
- TestLeftmostLongestCount (4 subtests)
- TestFindAtLeftmostLongest (3 subtests)

Docs:
- CONTRIBUTING.md: Git-Flow -> GitHub Flow, updated project structure
- CHANGELOG.md: v0.3.1 section
- Version const: 0.3.1

Community contribution by @MikeeI (PR #10).
@kolkov
kolkov merged commit 787d365 into main Sep 6, 2026
15 checks passed
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov
kolkov deleted the release/v0.3.1 branch September 6, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant